using System;
using System.Collections.Generic;
using System.Text;

namespace NBusiness.Data
{
    [Serializable]
    public class AccessRule
    {
        private Type _entityType;

        public Type EntityType
        {
            get { return _entityType; }
            set { _entityType = value; }
        }

        private string _field;

        public string Field
        {
            get { return _field; }
        }
        private bool _allow;

        public bool Allow
        {
            get { return _allow; }
        }
        private string _role;

        public string Role
        {
            get { return _role; }
        }
        private AccessRuleType _type;

        public AccessRuleType Type
        {
            get { return _type; }
        }

        public AccessRule(Type entityType, string field, AccessRuleType type, string role, bool allow)
        {
            _entityType = entityType;
            _field = field;
            _type = type;
            _allow = allow;
            _role = role;
        }
    }
}
